import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from '@/library/router/router'

Vue.use(VueRouter)

const router =  new VueRouter ({
    routes
})

router.beforeEach((to, from, next) => {
    // ...
    // console.log(to,from);
    next()
})

export default router